create or replace trigger trg_task_type
  before INSERT on task_type  
  for each row
BEGIN
	SELECT seq_task_type.NEXTVAL
		INTO :NEW.id
		FROM dual;
END trg_task_type;
/
